import request from '@/utils/request'
export function cancelPermission(data){
    return request({
        url:'/permissions/cancelUserPermission',
        method:'PUT',
        params:data
    })
}
//获取未匹配权限的用户
export function getUserIsNotRoleList(data){
    return request({
        url:'/permissions/getUserIsNotRoleList',
        method:'get',
        params:data
    })
}
export function allotUserPermission(data){
    return request({
        url:'/permissions/allotUserPermission',
        method:'PUT',
        data
    })
}
//获取已匹配权限的用户
export function getUserRoleList(data){
    return request({
        url:"/permissions/getUserRoleList",
        method:"GET",
        params:data
    })
}
export function cancelAllUserPermission(data){
    return request({
        url:'/permissions/cancelAllUserPermission',
        method:'PUT',
        data
    })
}